package com.patents.dao;

import com.patents.pojo.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UsersMapper {

    int addUsers(Users users);


    //根据id删除一个Book
    int deleteUsersById(int id);

    //更新Book
    int updateUsers(Users users);

    //根据id查询,返回一个Book
    Users queryUsersById(int id);

    //查询全部Book,返回list集合
    List<Users> queryAllUsers();

    public Users getUserByMassage(@Param("username")String username, @Param("password")String password);

}
